package com.esri.android.map;

import com.github.mikephil.charting.utils.Utils;

/* loaded from: classes.dex */
public class MapOptions {
    MapType a;
    double b;
    double c;
    int d;
    boolean e;

    public void setZoom(int i) {
        this.d = i;
        this.e = false;
    }

    public void setCenter(double d, double d2) {
        this.c = d2;
        this.b = d;
        this.e = false;
    }

    public MapOptions(MapType mapType) {
        this.b = Utils.DOUBLE_EPSILON;
        this.c = Utils.DOUBLE_EPSILON;
        this.d = 0;
        this.a = mapType == null ? MapType.TOPO : mapType;
        this.e = true;
    }

    public MapOptions(MapType mapType, double d, double d2, int i) {
        this.b = Utils.DOUBLE_EPSILON;
        this.c = Utils.DOUBLE_EPSILON;
        this.d = 0;
        this.a = mapType == null ? MapType.TOPO : mapType;
        this.c = d2;
        this.b = d;
        this.d = i;
        this.e = false;
    }

    /* loaded from: classes.dex */
    public enum MapType {
        STREETS(new String[]{"http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"}),
        TOPO(new String[]{"http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"}),
        SATELLITE(new String[]{"http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"}),
        HYBRID(new String[]{"http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer", "http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"}),
        NATIONAL_GEOGRAPHIC(new String[]{"http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer"}),
        OCEANS(new String[]{"http://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer", "http://services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"}),
        GRAY(new String[]{"http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer", "http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer"}),
        OSM(null);
        
        private String[] a;

        MapType(String[] strArr) {
            this.a = strArr;
        }

        /* JADX INFO: Access modifiers changed from: package-private */
        public String[] a() {
            return this.a;
        }

        /* JADX INFO: Access modifiers changed from: package-private */
        public static MapType a(String str) {
            if ("TOPO".equalsIgnoreCase(str)) {
                return TOPO;
            }
            if ("STREETS".equalsIgnoreCase(str)) {
                return STREETS;
            }
            if ("GRAY".equalsIgnoreCase(str)) {
                return GRAY;
            }
            if ("HYBRID".equalsIgnoreCase(str)) {
                return HYBRID;
            }
            if ("NATIONAL_GEOGRAPHIC".equalsIgnoreCase(str)) {
                return NATIONAL_GEOGRAPHIC;
            }
            if ("OCEANS".equalsIgnoreCase(str)) {
                return OCEANS;
            }
            if ("OSM".equalsIgnoreCase(str)) {
                return OSM;
            }
            if ("SATELLITE".equalsIgnoreCase(str)) {
                return SATELLITE;
            }
            return TOPO;
        }
    }
}
